﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AppFx.ComponentModel.Descriptive;

namespace AppFx.Collections
{
	public class ItemView<T> : IObjectProxy
	{
		#region Properties

		private T _Base;
		/// <summary>
		/// Das zugrunde liegende Basis-Objekt
		/// </summary>
		public T Base 
		{
			get { return _Base; }
			set { _Base = value; }
		}

		public object ProxiedObject
		{
			get { return Base; }
		}

		#endregion

		#region Constructors

		/// <summary>
		/// Erstellt eine neue ItemView und speichert das Basisobjekt.
		/// </summary>
		/// <param name="_base">Das Basisobjekt.</param>
		public ItemView(T _base)
		{
			Base = _base;
		}

		#endregion
	}
}
